package com.starnet.yarnmonitor.yarn.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.sql.Timestamp;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 陈佳豪
 * @since 2022-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class YarnWarnHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 告警的唯一标识
     */
    private Long optionId;

    /**
     * 告警类型
     */
    private String warnType;

    /**
     * 当前值
     */
    private Double nowValue;

    /**
     * 警告阈值
     */
    private Double limitValue;

    /**
     * 告警消息
     */
    private String msg;

    /**
     * 是否已恢复
     */
    private Boolean isRecovered;

    /**
     * 开始时间
     */
    private Timestamp createdTime;

    /**
     * 告警心跳
     */
    private Timestamp lastWarnTime;

    /**
     * 处理时间
     */
    private Timestamp recoveryTime;

    /***
     * 告警唯一标识
     */
    private String warnId;

}
